package de.mk.config;

import java.util.*;
import java.io.*;

public class LoadProperties {

	private static Properties properties = null;

	public static Properties getProperties() throws Exception {
		if (properties == null) {
			properties = loadXmlProperties();
		}
		return properties;
	}

	private static Properties loadXmlProperties() throws Exception {
		Properties prop = new Properties();
		InputStream fis =  ClassLoader.getSystemResourceAsStream("de/mk/config/config.xml");
		prop.loadFromXML(fis);
		return prop;
	}

}
